import request from '@/utils/request'

// 获取打单账号列表
export const getOrderPrintList = (params) => request({
  url: '/system/printConfig/list',
  method: 'get',
  params,
})
// 添加打单账号列表
export const addOrderPrint = (data) => request({
  url: '/system/printConfig/add',
  method: 'post',
  data,
})
// 修改打单账号列表
export const updateOrderPrint = (data) => request({
  url: '/system/printConfig/edit',
  method: 'put',
  data,
})
// 删除打单账号列表
export const delOrderPrint = (ids) => request({
  url: `/system/printConfig/remove/${ ids }`,
  method: 'delete',
})
// 查询发货人地址和服务商渠道列表
export const getAddressAndService = (query) => request({
  url: '/order/address/info/list',
  method: 'get',
  params: query,
})
